import { PlayerDialog } from "./PlayerDialog";
import { GlobalClass } from "../../../../../com/mui/core/GlobalClass";
import { GTextFormat } from "../../../../common/GTextFormat";
import { FontUtil } from "../../../../common/font/FontUtil";
import { FilterConst } from "../../../../component/gconst/FilterConst";
//class OperateClose
    
    export  class OperateClose extends PlayerDialog
    {
        constructor()
        {
            super();
            this._line = GlobalClass.getBitmap("Line");
            this._line.width = 400;
            this._line.x = -40;
            addChild(this._line);
            this._endInfo = new Object /* flash.text.TextField */();
            this._endInfo.y = 20;
            this._endInfo.width = 270;
            this._endInfo.defaultTextFormat = new GTextFormat(FontUtil.songtiName, 12, 16141388, true, null, null, null, null, flash.text.TextFormatAlign.LEFT);
            this._endInfo.selectable = false;
            this._endInfo.multiline = true;
            this._endInfo.wordWrap = true;
            this._endInfo.filters = [FilterConst.nameGlowFilter];
            addChild(this._endInfo);
            this._endInfo.text = "";
            return;
        }

        public /* override */ updateData(arg1: Array<any>): void
        {
            var loc1=0;
            this.dispose();
            var loc2=arg1.length;
            while (loc1 < loc2) 
            {
                this._endInfo.appendText(arg1[loc1] + "\n");
                ++loc1;
            }
            super.updateData(arg1);
            return;
        }

        public /* override */ dispose(): void
        {
            this._endInfo.text = "";
            return;
        }

        public /* override */ get height(): number
        {
            return this._endInfo.textHeight + this._endInfo.y + this._line.height;
        }

        protected /* var */_endInfo: Object /* flash.text.TextField */;

        protected /* var */_line: Object /* flash.display.Bitmap */;
    }
